package cn.doitedu.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

@Controller
public class PageController {

    @RequestMapping("/zhege")
    public String getPage(){

        System.out.println("hahahahha");

        return "some";
    }


    @RequestMapping("/api/login")
    public String login(String username,String password){

        if(password.equals("123456")){
            return "user_center";
        }else{
         return "login_error";
        }

    }


}
